package com.xdwanj.androidutil.response.k

import androidx.lifecycle.MutableLiveData
import org.junit.Test

class DataResultTest {
    @Test
    fun test() {
        val data = MutableLiveData<String>()
        val dataResult = DataResult(
            "hello",
            ResponseStatus("200", true, ResultSource.NETWORK)
        )

        dataResult.onResult {
            data.value = it.mEntity
        }
    }
}
